package com.service;


import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SendMessageService {

    @Autowired
    private AmqpTemplate  amqpTemplate;

    /**
     *
     * @param content 要发送的内容
     */
    public void sendMessage(String content){
        amqpTemplate.convertAndSend("sunjob_exchange",null,content);
    }


}
